using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class PT_CustomerManagerBase
    {
        public PT_CustomerManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity Insert(PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity Update(PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.Update(obj);             
        }
 
        public PT_CustomerEntity Delete(PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.Delete(obj);             
        }
 
        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Address duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByAddress (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"Address");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Address 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByAddress (string Address )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Address = Address;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"Address");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien AddressNumber duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByAddressNumber (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"AddressNumber");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien AddressNumber 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByAddressNumber (string AddressNumber )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.AddressNumber = AddressNumber;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"AddressNumber");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CellPhone duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByCellPhone (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"CellPhone");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CellPhone 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByCellPhone (string CellPhone )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CellPhone = CellPhone;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"CellPhone");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CustName duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByCustName (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"CustName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CustName 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByCustName (string CustName )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CustName = CustName;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"CustName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DistCode duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByDistCode (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"DistCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DistCode 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByDistCode (int DistCode )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.DistCode = DistCode;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"DistCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MachineCode duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByMachineCode (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"MachineCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MachineCode 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByMachineCode (string MachineCode )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.MachineCode = MachineCode;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"MachineCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Model duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByModel (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"Model");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Model 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByModel (string Model )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Model = Model;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"Model");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NumberPlate duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByNumberPlate (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"NumberPlate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NumberPlate 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByNumberPlate (string NumberPlate )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.NumberPlate = NumberPlate;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"NumberPlate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Phone duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByPhone (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"Phone");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Phone 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByPhone (string Phone )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Phone = Phone;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"Phone");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ProvinceCode duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByProvinceCode (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"ProvinceCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ProvinceCode 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByProvinceCode (int ProvinceCode )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.ProvinceCode = ProvinceCode;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"ProvinceCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TotalKms duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByTotalKms (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"TotalKms");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TotalKms 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByTotalKms (double TotalKms )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.TotalKms = TotalKms;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"TotalKms");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Ward duoc set trong object
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByWard (PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"Ward");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Ward 
        /// </summary>
        /// <returns>PT_CustomerEntity</returns>
        public PT_CustomerEntity DeleteByWard (string Ward )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Ward = Ward;  
            return (PT_CustomerEntity)Adapter.DeleteByField(obj,"Ward");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public PT_CustomerEntity Select(PT_CustomerEntity obj)
        { 
            return (PT_CustomerEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_CustomerEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_CustomerEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new PT_CustomerEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new PT_CustomerEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_CustomerEntity> SelectAllLST()
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_CustomerEntity()),new PT_CustomerEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_CustomerEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_CustomerEntity(),option),new PT_CustomerEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien Address duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAddress (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"Address");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Address duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAddress (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Address",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Address duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByAddressLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Address"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Address duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByAddressLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Address",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Address 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAddress (string Address )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Address = Address;  
            return Adapter.SelectByField(obj,"Address");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Address duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAddress (string Address, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Address = Address;  
            return Adapter.SelectByField(obj,"Address",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Address 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByAddressLST (string Address )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Address = Address;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Address"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Address duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByAddressLST (string Address, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Address = Address;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Address",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AddressNumber duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAddressNumber (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"AddressNumber");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AddressNumber duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAddressNumber (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"AddressNumber",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AddressNumber duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByAddressNumberLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"AddressNumber"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AddressNumber duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByAddressNumberLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"AddressNumber",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AddressNumber 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAddressNumber (string AddressNumber )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.AddressNumber = AddressNumber;  
            return Adapter.SelectByField(obj,"AddressNumber");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AddressNumber duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAddressNumber (string AddressNumber, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.AddressNumber = AddressNumber;  
            return Adapter.SelectByField(obj,"AddressNumber",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AddressNumber 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByAddressNumberLST (string AddressNumber )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.AddressNumber = AddressNumber;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"AddressNumber"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien AddressNumber duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByAddressNumberLST (string AddressNumber, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.AddressNumber = AddressNumber;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"AddressNumber",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CellPhone duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCellPhone (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"CellPhone");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CellPhone duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCellPhone (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CellPhone",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CellPhone duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByCellPhoneLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CellPhone"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CellPhone duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByCellPhoneLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CellPhone",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CellPhone 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCellPhone (string CellPhone )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CellPhone = CellPhone;  
            return Adapter.SelectByField(obj,"CellPhone");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CellPhone duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCellPhone (string CellPhone, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CellPhone = CellPhone;  
            return Adapter.SelectByField(obj,"CellPhone",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CellPhone 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByCellPhoneLST (string CellPhone )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CellPhone = CellPhone;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CellPhone"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CellPhone duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByCellPhoneLST (string CellPhone, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CellPhone = CellPhone;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CellPhone",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CustName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCustName (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"CustName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CustName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCustName (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CustName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CustName duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByCustNameLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CustName"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CustName duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByCustNameLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CustName",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CustName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCustName (string CustName )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CustName = CustName;  
            return Adapter.SelectByField(obj,"CustName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CustName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCustName (string CustName, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CustName = CustName;  
            return Adapter.SelectByField(obj,"CustName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CustName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByCustNameLST (string CustName )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CustName = CustName;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CustName"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CustName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByCustNameLST (string CustName, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.CustName = CustName;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CustName",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DistCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDistCode (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"DistCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DistCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDistCode (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"DistCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DistCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByDistCodeLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DistCode"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DistCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByDistCodeLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"DistCode",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DistCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDistCode (int DistCode )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.DistCode = DistCode;  
            return Adapter.SelectByField(obj,"DistCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DistCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDistCode (int DistCode, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.DistCode = DistCode;  
            return Adapter.SelectByField(obj,"DistCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DistCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByDistCodeLST (int DistCode )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.DistCode = DistCode;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DistCode"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DistCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByDistCodeLST (int DistCode, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.DistCode = DistCode;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DistCode",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MachineCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMachineCode (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"MachineCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MachineCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMachineCode (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MachineCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MachineCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByMachineCodeLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MachineCode"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MachineCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByMachineCodeLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MachineCode",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MachineCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMachineCode (string MachineCode )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.MachineCode = MachineCode;  
            return Adapter.SelectByField(obj,"MachineCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MachineCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMachineCode (string MachineCode, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.MachineCode = MachineCode;  
            return Adapter.SelectByField(obj,"MachineCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MachineCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByMachineCodeLST (string MachineCode )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.MachineCode = MachineCode;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MachineCode"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MachineCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByMachineCodeLST (string MachineCode, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.MachineCode = MachineCode;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MachineCode",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Model duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByModel (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"Model");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Model duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByModel (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Model",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Model duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByModelLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Model"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Model duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByModelLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Model",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Model 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByModel (string Model )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Model = Model;  
            return Adapter.SelectByField(obj,"Model");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Model duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByModel (string Model, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Model = Model;  
            return Adapter.SelectByField(obj,"Model",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Model 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByModelLST (string Model )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Model = Model;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Model"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Model duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByModelLST (string Model, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Model = Model;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Model",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NumberPlate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNumberPlate (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"NumberPlate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NumberPlate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNumberPlate (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NumberPlate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NumberPlate duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByNumberPlateLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NumberPlate"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NumberPlate duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByNumberPlateLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NumberPlate",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NumberPlate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNumberPlate (string NumberPlate )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.NumberPlate = NumberPlate;  
            return Adapter.SelectByField(obj,"NumberPlate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NumberPlate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNumberPlate (string NumberPlate, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.NumberPlate = NumberPlate;  
            return Adapter.SelectByField(obj,"NumberPlate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NumberPlate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByNumberPlateLST (string NumberPlate )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.NumberPlate = NumberPlate;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NumberPlate"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NumberPlate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByNumberPlateLST (string NumberPlate, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.NumberPlate = NumberPlate;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NumberPlate",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Phone duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhone (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"Phone");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Phone duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhone (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Phone",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Phone duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByPhoneLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Phone"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Phone duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByPhoneLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Phone",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Phone 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhone (string Phone )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Phone = Phone;  
            return Adapter.SelectByField(obj,"Phone");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Phone duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhone (string Phone, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Phone = Phone;  
            return Adapter.SelectByField(obj,"Phone",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Phone 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByPhoneLST (string Phone )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Phone = Phone;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Phone"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Phone duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByPhoneLST (string Phone, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Phone = Phone;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Phone",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ProvinceCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByProvinceCode (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"ProvinceCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ProvinceCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByProvinceCode (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ProvinceCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ProvinceCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByProvinceCodeLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ProvinceCode"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ProvinceCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByProvinceCodeLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ProvinceCode",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ProvinceCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByProvinceCode (int ProvinceCode )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.ProvinceCode = ProvinceCode;  
            return Adapter.SelectByField(obj,"ProvinceCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ProvinceCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByProvinceCode (int ProvinceCode, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.ProvinceCode = ProvinceCode;  
            return Adapter.SelectByField(obj,"ProvinceCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ProvinceCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByProvinceCodeLST (int ProvinceCode )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.ProvinceCode = ProvinceCode;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ProvinceCode"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ProvinceCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByProvinceCodeLST (int ProvinceCode, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.ProvinceCode = ProvinceCode;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ProvinceCode",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalKms duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTotalKms (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"TotalKms");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalKms duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTotalKms (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TotalKms",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalKms duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByTotalKmsLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TotalKms"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalKms duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByTotalKmsLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TotalKms",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalKms 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTotalKms (double TotalKms )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.TotalKms = TotalKms;  
            return Adapter.SelectByField(obj,"TotalKms");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalKms duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTotalKms (double TotalKms, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.TotalKms = TotalKms;  
            return Adapter.SelectByField(obj,"TotalKms",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalKms 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByTotalKmsLST (double TotalKms )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.TotalKms = TotalKms;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TotalKms"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalKms duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByTotalKmsLST (double TotalKms, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.TotalKms = TotalKms;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TotalKms",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Ward duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByWard (PT_CustomerEntity obj)
        { 
            return Adapter.SelectByField(obj,"Ward");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Ward duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByWard (PT_CustomerEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Ward",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Ward duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByWardLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Ward"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Ward duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectByWardLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Ward",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Ward 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByWard (string Ward )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Ward = Ward;  
            return Adapter.SelectByField(obj,"Ward");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Ward duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByWard (string Ward, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Ward = Ward;  
            return Adapter.SelectByField(obj,"Ward",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Ward 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByWardLST (string Ward )
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Ward = Ward;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Ward"),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Ward duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_CustomerEntity> SelectByWardLST (string Ward, SelectOptions option)
        { 
            PT_CustomerEntity obj = new PT_CustomerEntity();
            obj.Ward = Ward;  
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Ward",option),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectWithConditionLST (PT_CustomerEntity obj)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new PT_CustomerEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_CustomerEntity></returns>
        public List<PT_CustomerEntity> SelectWithConditionLST (PT_CustomerEntity obj,SelectOptions option)
        { 
            return  (List<PT_CustomerEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new PT_CustomerEntity());
        }

}
}
